#include <QtGui/QApplication>
#include "qmlapplicationviewer.h"

#include "monitor.h"
#include "wifimonitor.h"
#include "wifiindicator.h"
#include "qnmsettings.h"
#include "qnetman2.h"

Q_DECL_EXPORT int main(int argc, char *argv[])
{
    qmlRegisterType<Monitor>("cppGraphMonitor", 1, 0, "GraphMonitor");
    qmlRegisterType<WiFiMonitor>("cppWiFiMonitor", 1, 0, "WiFiMonitor");
    qmlRegisterType<WiFiIndicator>("cppWiFiGraph", 1, 0, "WiFiGraph");

    QNMSettings *qset = new QNMSettings();

    QScopedPointer<QApplication> app(createApplication(argc, argv));

    QScopedPointer<QNetMan2> qnm2( new QNetMan2(qset) );
    qnm2->initQNetMan2();
    qnm2->showFullScreen();

    return app->exec();
}
